package cash.cmp.personal_financial_system;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;

@ComponentScan("cash.cmp")
@EnableTransactionManagement
@EnableScheduling
@SpringBootApplication
public class PersonalFinancialSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(PersonalFinancialSystemApplication.class, args);
    }
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
